Skip to content

Add RBS signatures from ruby/rbs repo#279

Open
sferik wants to merge 2 commits intoruby:masterfrom
sferik:add-rbs-signatures
Open

Add RBS signatures from ruby/rbs repo#279
sferik wants to merge 2 commits intoruby:masterfrom
sferik:add-rbs-signatures

Conversation

@sferik
Copy link

@sferik sferik commented Mar 6, 2026

See #278 for context.

@sferik sferik mentioned this pull request Mar 6, 2026
Copy link

@ksss ksss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test code differs significantly from the ruby/rbs version, making it difficult to pinpoint the differences.
Can it be made as close to the original as possible?
If there are issues with the original, please let me know.

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ruby-version: "4.0"
ruby-version: ruby

t.libs << "test_sig"
t.ruby_opts << "-rtest_helper"
t.test_files = FileList["test_sig/test_*.rb"]
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An rbs:annotate command would be convenient for maintenance.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did that in f761545 as part of #280, but I can move that into this PR, if you’d prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants